﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Ploeh.AutoFixture;
using FluentAssertions;

namespace Hopscotch.Domain.Finance.Test
{
    [TestFixture]
    public class EquityInstrumentTest
    {
        [Test]
        //Todo, autogen these tests
        public void ClonedObjectIsEqual()
        {
            var fixture = new Fixture();
            var obj = fixture.Build<EquityInstrument>()
                .With(x => x.Instrument, null)
                .Create();

            var clone = obj.Clone(true);
            obj.Equals(clone).Should().BeTrue();
        }
    }
}
